<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FileView.ascx.cs" Inherits="SubversionReports.Web.Controls.FileView" %>

<%@ Register TagPrefix="uc" TagName="DiffView" Src="~/Controls/DiffView.ascx" %>
<%@ Register TagPrefix="uc" TagName="HistoryView" Src="~/Controls/HistoryView.ascx" %>
<%@ Register TagPrefix="uc" TagName="BreadCrumbler" Src="~/Controls/BreadCrumbler.ascx" %>
<%@ Register TagPrefix="Wilco" Namespace="Wilco.SyntaxHighlighting.Web" Assembly="Wilco.SyntaxHighlighter" %>

<h2><uc:BreadCrumbler runat="server" ID="BreadCrumbler1" /></h2>
<p>
    <asp:Literal runat="server" ID="Description" /><br />
    <asp:HyperLink runat="server" ID="RevisionLink" />
</p>

<h3><asp:ImageButton runat="server" ID="ViewFileRevisionLogButton" ImageUrl="~/Images/plus.png" OnClick="ViewFileRevisionLogButton_Click" /> File history</h3>

<uc:HistoryView runat="server" ID="HistoryView1" Visible="false" />

<p style="text-align: left; display: block; width: 40%; float: left;">

    <asp:HyperLink runat="server" ID="GoToFirstLink" CssClass="PagingLink" />&nbsp;<asp:HyperLink runat="server" ID="GoToPreviousImageLink" CssClass="PagingLink" />&nbsp;<asp:HyperLink runat="server" ID="GoToPreviousLink" Text="go to previous revision" Enabled="false" />
    ::
    <asp:HyperLink runat="server" ID="GoToNextLink" Text="go to next revision" Enabled="false" />&nbsp;<asp:HyperLink runat="server" ID="GoToNextImageLink" CssClass="PagingLink" />&nbsp;<asp:HyperLink runat="server" ID="GoToLastLink" CssClass="PagingLink" />
</p>

<p style="text-align: right; display: block; width: 50%; float: right;">
    <asp:HyperLink runat="server" ID="CompareToPreviousImageLink" CssClass="PagingLink" />&nbsp;<asp:HyperLink runat="server" ID="CompareToPreviousLink" Text="compare to previous revision" Enabled="false" />
    ::
    <asp:HyperLink runat="server" ID="CompareToNextLink" Text="compare to next revision" Enabled="false" />&nbsp;<asp:HyperLink runat="server" ID="CompareToNextImageLink" CssClass="PagingLink" />
</p>
<br style="clear: both;" />

<Wilco:SyntaxHighlighter runat="server" ID="SyntaxHighlighter1" Mode="Source" />
<asp:PlaceHolder runat="server" ID="HighlighterCredits"><p>The syntax highlighting functionality provided on this page is derived from the work of Wilco Bauwer at: <a href="http://www.wilcob.com/Wilco/Toolbox/SyntaxHighlighter.aspx">http://www.wilcob.com/Wilco/Toolbox/SyntaxHighlighter.aspx</a>.</p></asp:PlaceHolder>
<asp:PlaceHolder runat="server" id="SourceViewContainer">
    <div style="border: 1px dotted #000; background-color: #eee; padding: 4px; overflow: scroll; white-space: pre; font-family: Consolas, 'Bitstream Vera Sans Mono', monospace, Courier, Serif;"><asp:Literal runat="server" ID="TextFileContents" Mode="PassThrough" /></div>
</asp:PlaceHolder>

<uc:DiffView runat="server" ID="DiffView1" />